package com.jn.exam.webSocket.service;

import com.jn.exam.R;
import com.jn.exam.webSocket.entity.Student;
import com.jn.exam.webSocket.entity.StudentConnection;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

/**
 * @author 江南大学1033190417
 * @date 2022/3/6 15:55
 */
@Component
@FeignClient(value = "service-exam")
public interface ExamService {

    @ResponseBody
    @PostMapping("/exam/exam/updateExamStudentConnectionForFeign")
    public boolean updateExamStudentConnectionForFeign(@RequestBody StudentConnection studentConnection);

    @ResponseBody
    @GetMapping("/exam/exam/getExamStudentConnectionTeaForFeign/{examId}/{studentId}")
    public StudentConnection getExamStudentConnectionTeaForFeign(@PathVariable("examId") String examId, @PathVariable("studentId") String studentId);


    }
